package com.nineclock.system.service;

import com.nineclock.system.dto.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface SysCompanyService {
    SysCompanyDTO queryCompanyInfo();

    String uploadOss(MultipartFile file) throws IOException;

    void updateCompanyInfo(SysCompanyDTO sysCompanyDTO);

    SysCompanyUserDTO queryCurrentAdmin();

    void changeSysAdmin(SysChangeMainManagerDTO sysChangeMainManagerDTO);

    List<SysCompanyDTO> queryCompanyByName(String keyword);

    void applyJoinCompany(SysApplyJoinCompanyUserDTO sysApplyJoinCompanyUserDTO);

    void allowedJoinCompany(SysAllowedJoinCompanyUserDTO sysAllowedJoinCompanyUserDTO);

    List<SysCompanyDTO> queryCompanyList(Long userId);
}
